import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useSevenSTroubleStore = defineStore(
  'sevenSTrouble',
  () => {
    const sevenSTroubleItem = ref({})
    const detailItem = ref({})
    const setSevenSTroubleItem = (newVal) => {
      sevenSTroubleItem.value = newVal
    }
    const setDetailItem = (newVal) => {
      detailItem.value = newVal
    }
    return {
      sevenSTroubleItem,
      setSevenSTroubleItem,
      detailItem,
      setDetailItem,
    }
  },
  {
    persist: true,
  },
)
